package com.koron.ticket.line.workChange.ticketchange.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.query.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class TicketChangeQuery extends PageQuery {

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("变更单编号")
    private String code;

    @ApiModelProperty("工作票ID")
    private String workTicketId;

    @ApiModelProperty("工作票编号")
    private String workTicketCode;

    @ApiModelProperty("工作票类型")
    private String workTicketType;

    @ApiModelProperty("申请人部门ID")
    private String deptId;

    @ApiModelProperty("申请人部门名称")
    private String deptName;

    @ApiModelProperty("变更类型(数据字典)")
    private String type;

    @ApiModelProperty("变更日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date changeDate;

    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @ApiModelProperty("创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "填票开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date startCreateTime;

    @ApiModelProperty(value = "填票结束结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date endCreateTime;

}
